package designPatterns.P07_装饰器模式_Decorator.P02_齐天大圣;

import designPatterns.P07_装饰器模式_Decorator.P02_齐天大圣.decorators.Bird;
import designPatterns.P07_装饰器模式_Decorator.P02_齐天大圣.decorators.Fish;

public class P01 {
    public static void main(String[] args) {
        TheGreatSage sage = new Monkey();
        TheGreatSage bird = new Bird(sage);
        bird.move();

        TheGreatSage fish = new Fish(bird);
        fish.move();
    }
}
